﻿<%@ Page Title="Affiliated Clinic Entries" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="AffiliatedClinic.aspx.cs" Inherits="SAP.AffiliatedClinic" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        Main.myUpdatePanelId = '<%= SalesOpportunityUpdatePanel.ClientID %>';
    </script>
    <asp:UpdatePanel ID="SalesOpportunityUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="contentData" style="padding-left: 15px;">
                <div id="title-form" style="border-bottom: 2px solid black;">
                    <h2 style="font-size: small">Affiliated Clinic Entries</h2>
                </div>

                <%--<iframe src="http://docs.google.com/viewer?url=https%3A%2F%2Fdocs.google.com%2Fspreadsheet%2Fpub%3Fkey%3D0Al9kgeU5W34edE43TFBQLTI3dVRMWkVaNklsZEFTY3c%26output%3Dhtml&embedded=true" width="600" height="780" style="border: none;"></iframe>--%>

                <div id="header-form">
                    
                </div>
                <br />
                <br />
                <div ID="tabs-1" style="overflow: auto; height: 497px; margin-top: 0px;">
                    
                    <asp:ListView ID="lvAffiliatedClinic" runat="server">
                        <LayoutTemplate>
                            <table class="data_table">
                                <tr>
                                    <th style="width: 25px">
                                        <span>#</span>
                                    </th>
                                    <th style="width: 180px">
                                        <span>Affiliated Clinic</span>
                                    </th>
                                    <th style="width: 90px">
                                        <span>Date</span>
                                    </th>
                                    <th style="width: 100px">
                                        <span>Patient IC No.</span>
                                    </th>
                                    <th style="width: 150px">
                                        <span>Patient Name</span>
                                    </th>
                                    <th>
                                        <span>Address</span>
                                    </th>
                                    <th>
                                        <span>Contact No.</span>
                                    </th>
                                    <th>
                                        <span>Company</span>
                                    </th>
                                    <th>
                                        <span>Grade</span>
                                    </th>
                                    <th>
                                        <span>Cost Price</span>
                                    </th>
                                    <th>
                                        <span>Selling Price</span>
                                    </th>
                                </tr>
                                <tr ID="itemPlaceholder" runat="server">
                                </tr>
                            </table>
                        </LayoutTemplate>
                        <ItemTemplate>
                           <tr>
                                <td>
                                    <asp:Label ID="lblNo" runat="server" Text='<%#Eval("No")%>' />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox2" Style="text-align: left" runat="server" Text='<%#Eval("AffiliatedClinic")%>' />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox1" CssClass="txtDate"  Style="text-align: left" runat="server" Text='<%#Eval("Date")%>' />
                                </td>
                                <td>
                                    <asp:TextBox ID="txtQuantity" Style="text-align: left" runat="server" Text='<%#Eval("PatientICNo")%>' />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox3" Style="text-align: left" runat="server" Text='<%#Eval("PatientName")%>' />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox4" Style="text-align: left" runat="server" Text='<%#Eval("PatientAddress")%>' />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox5" Style="text-align: left" runat="server" Text='<%#Eval("PatientContactNo")%>' />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox6" Style="text-align: left" runat="server" Text='<%#Eval("Company")%>' />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox7" Style="text-align: left" runat="server" Text='<%#Eval("Grade")%>' />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox8" Style="text-align: right" runat="server" Text='<%#Eval("TotalCost")%>' />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBox9" Style="text-align: right" runat="server" Text='<%#Eval("TotalPrice")%>' />
                                </td>
                              </tr>
                        </ItemTemplate>
                         
                        <EmptyDataTemplate>
                            <table class="data_table">
                                <tr>
                                    <th style="width: 20px">
                                        <span>#</span>
                                    </th>
                                    <th style="width: 120px">
                                        <span>Affiliated Clinic</span>
                                    </th>
                                    <th style="width: 80px">
                                        <span>Date</span>
                                    </th>
                                    <th style="width: 90px">
                                        <span>Patient IC No.</span>
                                    </th>
                                    <th style="width: 130px">
                                        <span>Patient Name</span>
                                    </th>
                                    <th>
                                        <span>Patient Address</span>
                                    </th>
                                    <th>
                                        <span>Patient Contact No.</span>
                                    </th>
                                    <th>
                                        <span>Company</span>
                                    </th>
                                    <th>
                                        <span>Grade</span>
                                    </th>
                                    <th>
                                        <span>Total Cost Price</span>
                                    </th>
                                    <th>
                                        <span>Total Selling Price</span>
                                    </th>
                                </tr>
                                <tr>
                                    <td colspan="11">
                                        <span>No Data</span>
                                    </td>
                                </tr>
                            </table>
                        </EmptyDataTemplate>
                    </asp:ListView>
                    
                </div>
                <div id="footer-form">
                    <div>
                        <asp:Button ID="Button1" runat="server" Text="Save" onclick="Button1_Click" />
                        <asp:Button ID="Button2" runat="server" Text="Post to AP Invoice" />
                    </div>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
